package com.xzzz.irda.registry.discovery;

import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

@Configuration
public class RedisDiscoveryClientConfiguration {

    @Bean
    public DiscoveryClient discoveryClient(StringRedisTemplate stringRedisTemplate) {
        return new RedisDiscoveryClient(stringRedisTemplate);
    }

}
